#include "MenuState.h"

MenuState::MenuState(){
}

MenuState::~MenuState(){
}

void MenuState::initialize(){
	glClearColor(0.0f, 1.0f, 0.0f, 1.0f);
	glClearDepth(1.0f);
}

void MenuState::cleanup(){
}

StateType MenuState::events(){
	if(eventHandler.keyPressEvent('1') == KEY_PRESSED)
	{
		return STATE_PLAY;
	}
	return NULL_STATE;
}

StateType MenuState::run(){
	GameState::run();
	StateType newState = events();
	if(newState != NULL_STATE){
		return newState;
	}
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
	return NULL_STATE;
}